﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZBJF.Warranty.Model.ViewModel.InsuranceProducts
{
    public class CellPhoneServiceProjectModel
    {
        /// <summary>
        /// 手机维修服务ID
        /// </summary>
        public int ID { get; set; }
        /// <summary>
        /// 服务项目ID
        /// </summary>
        public int ServiceProjectId { get; set; }
        /// <summary>
        /// 保额
        /// </summary>
        public decimal InsuredAmount { get; set; }
        /// <summary>
        /// 服务项目名称
        /// </summary>
        public string ServiceProjectName { get; set; }
        /// <summary>
        /// 保险设备：手机：1
        /// </summary>
        public byte InsuranceDevice { get; set; }
        /// <summary>
        /// 保险设备类型：新机/在用机
        /// </summary>
        public byte InsuranceDeviceType { get; set; }
        /// <summary>
        /// 新机等待期
        /// </summary>
        public int NewMachineInsuranceTimeLimit { get; set; }
        /// <summary>
        /// 可服务次数
        /// </summary>
        public byte ServiceTimes { get; set; }
        /// <summary>
        /// 使用机型选项条件
        /// </summary>
        public bool UseModelTypeOption { get; set; }
        /// <summary>
        /// 机型选项条件判断类型：1是；2不是
        /// </summary>
        public byte ModelTypeJudgeType { get; set; }
        /// <summary>
        /// 使用屏幕类型条件
        /// </summary>
        public bool UseScreenTypeOption { get; set; }
        /// <summary>
        /// 屏幕类型条件判断类型：1是；2不是
        /// </summary>
        public byte ScreenTypeJudgeType { get; set; }
        /// <summary>
        /// 使用价格条件
        /// </summary>
        public bool UsePriceOption { get; set; }
        /// <summary>
        /// 价格开始金额
        /// </summary>
        public decimal? ProductAmountFrom { get; set; }
        /// <summary>
        /// 价格结束金额
        /// </summary>
        public decimal? ProductAmountTo { get; set; }

        /// <summary>
        /// 可使用的配件等级
        /// </summary>
        public List<AccessoriesLevelList> AccessoriesLevelList { get; set; }
        /// <summary>
        /// 可维修方式
        /// </summary>
        public List<int> InsuranceWarrantyMaintenanceTypeList { get; set; }
        /// <summary>
        /// 可保机型列表模型
        /// </summary>
        public List<InsuranceProductsAvailableModel> InsuranceProductsAvailableModelTypeModel { get; set; }
        /// <summary>
        /// 可保屏幕类型
        /// </summary>
        public List<byte> InsuranceProductsAvailableScreenType { get; set; }
        /// <summary>
        /// 审核项目配置
        /// </summary>
        public List<InsuranceProductsAuditProjectConfigurationMappings> InsuranceProductsAuditProjectConfigurationMappings { get; set; }
        /// <summary>
        /// 信息收集配置
        /// </summary>
        public List<InsuranceProductsInfoCollectItemMappings> InsuranceProductsInfoCollectItemMappings { get; set; }
    }
    public class AccessoriesLevelList
    {

        public long ID { get; set; }

        public int CellPhoneServiceProjectID { get; set; }

        public int AccessoriesTypeID { get; set; }

        public int ProductTypeID { get; set; }

        public int AccessoriesLevelID { get; set; }

        /// <summary>
        /// 配件类型名称
        /// </summary>
        public string AccessoriesTypeName { get; set; }
        /// <summary>
        /// 配件等级名称
        /// </summary>
        public string AccessoriesLevelName { get; set; }
    }

    //public class ProductModels
    //{
    //    /// <summary>
    //    /// 型号ID
    //    /// </summary>
    //    public long ID { get; set; }
    //    /// <summary>
    //    /// 型号名称
    //    /// </summary>
    //    public string ProductModelsName { get; set; }
    //    /// <summary>
    //    /// 品牌ID
    //    /// </summary>
    //    public long ProductBrandsId { get; set; }
    //    /// <summary>
    //    /// 品牌名称
    //    /// </summary>
    //    public string ProductBrandsName{ get; set; }
    //}
}
